

for file in `ls *.txt`
do
	int=1
	while(( $int<=500000 ))
	do
		echo "----------------   $file -----------------------------"
		dos2unix.exe $file  &> err
		line=`cat err | grep "line" | cut -d " " -f 8`	
		echo $line;
		if [ -z $line ] 
		then
			echo $file >> success.log
			mv $file ../success
			echo "-----  $file  -----success" ;
			break;
		else
			echo $file
			sed -i $line'd' $file		
		fi
		echo $int
		let "int++";
		echo "----------------   $file -----------------------------"
	done
done


